package deleteNode;

public class Solution {
      public class ListNode {
      int val;
      ListNode next;
      ListNode(int x) { val = x; }
  }
    public void deleteNode(ListNode node) {
          // 删除节点
        node.val = node.next.val;
        node.next = node.next.next;
    }
}
